﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for Loan
/// </summary>
public class Loan
{

    public string LoanNo { get; set; }
    public DateTime StartDate { get; set; }
    public DateTime EndDate { get; set; }
    public int Term { get; set; }
    public decimal Principal { get; set; }
    public string Period { get; set; }
    public decimal InterestRate { get; set; }
    public string Product { get; set; }
	public Loan()
	{
        LoanNo = "";
        StartDate = new DateTime(1900, 1, 1);
        EndDate = new DateTime(1900, 1, 1);
        Term = 0;
        Principal = 0;
        Period = "";
        InterestRate = 0;
	}
    public Loan(string loanNo, DateTime startDate, int term, decimal principal, string period, decimal interestRate )
    {
        LoanNo = loanNo;
        StartDate = startDate;   
        EndDate = startDate;
        Term = term;
        Principal = principal;
        Period = period;
        InterestRate = interestRate;
        Period = period;
    }
}